package tk.mystudio.idc.dao.impl;

import org.eclipse.persistence.queries.QueryByExamplePolicy;

import tk.mystudio.dao.impl.BaseDaoImpl;
import tk.mystudio.idc.dao.AreaDao;
import tk.mystudio.idc.pojo.Area;
import tk.mystudio.util.Order;
import tk.mystudio.util.Page;

public class AreaDaoImpl extends BaseDaoImpl<Area> implements AreaDao {
	@Override
	public Page<Area> listByPage(Object example, Page<Area> page, Order[] orders) {

		QueryByExamplePolicy policy = getBasicQBEPolicy();
		policy.addSpecialOperation(String.class, "likeIgnoreCase");
		return executePageQuery(example, policy, null, page, orders);
	}
}
